import { request } from "../utils/request";

//获取订单列表
export const getOrderList = (data) => {
  return request({
    url: "/app-api/llm/product/spu/page",
    method: "GET",
    data,
  });
};

//获取商品列表
export const getSubjectList = () => {
  return request({
    url: "/app-api/llm/product/spu/subject/page",
    method: "GET",
  });
};
//获取订单信息
export const getOrderInfo = (data) => {
  return request({
    url: "/app-api/llm/trade/order/settlement",
    method: "POST",
    data,
  });
};
//创建订单
export const createOrder = (data) => {
  return request({
    url: "/app-api/llm/trade/order/create-subject-code",
    method: "POST",
    data,
  });
};
export const submitPay = (data) => {
  return request({
    url: "/app-api/pay/order/submit",
    method: "POST",
    data,
  });
};
